package bdqn.t09.service.impl;

import bdqn.t09.dao.AsRoleMapper;
import bdqn.t09.pojo.AsRole;
import bdqn.t09.service.AsRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AsRoleServiceImpl implements AsRoleService {

    @Resource
    public AsRoleMapper mapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AsRole record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(AsRole record) {
        return mapper.insertSelective(record);
    }

    @Override
    public AsRole selectByPrimaryKey(Long id) {

        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public List<AsRole> asRoleList() {
        return mapper.asRoleList();
    }

    @Override
    public int updateByPrimaryKeySelective(AsRole record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AsRole record) {
        return mapper.updateByPrimaryKey(record);
    }
}
